package com.scholarship.modules.login.service;


import java.util.concurrent.Future;

/**
 * @Author Z.J.H
 * @create 2021/7/27 15:51
 */
public interface MailService {

    /**
     * 发送邮件
     * @param to    收信邮件
     */
    Future<Boolean> sendMail(String to) throws Exception;

    /**
     * 比对验证码
     * @param email
     * @param code
     * @return
     */
    Boolean compareCode(String email, String code) throws Exception;
}
